<template>
  <div  class="wrapper">
   <Anchor :labelList="labels" activeId="row-01" labelWidth="80">
      <div class="line" id="row-01">
        <InfoBase v-model="value"  />
      </div>
      <div class="line" id="row-02">
        <infoProduct v-model="value" />
      </div>
      <div class="line" id="row-03">
        <infoPower v-model="value" />
      </div>
      <div class="line" id="row-04">
        <infoCompany v-model="value" />
      </div>
      <div class="line" id="row-05">
        <infoStock v-model="value" />
      </div>
       <div class="line" id="row-06">
        <infoFinance v-model="value" />
      </div>
      <div class="line" id="row-07">
        <infoOpinion v-model="value" />
      </div>
    </Anchor>
   <div class="dialogBottmView">
      <el-button @click="closeDialog">关 闭</el-button>
      <el-button @click="saveDialog"  v-if="value.type!=='show'" type="primary">驳 回</el-button>
      <el-button @click="saveDialog"  v-if="value.type!=='show'" type="primary">通 过</el-button>
   </div>
  </div>
</template>

<script>
import { authority } from '@/utils/authMixin';
import { dictionary } from '@/utils/dictMixin';
import InfoBase from './infoBase'; //基本信息
import infoProduct from './infoProduct'; //产品授权
import infoPower from './infoPower'; //授权信息
import infoCompany from './infoCompany'; //公司信息
import infoStock from './infoStock'; //股东信息
import infoFinance from './infoFinance'; //财务信息
import infoOpinion from './infoOpinion'; //审核信息


export default {
   mixins: [authority, dictionary],
      components: {
        InfoBase,
        infoProduct,infoPower,infoCompany,infoStock,infoFinance,infoOpinion
      },
  props:{
    value: {
      type: Object,
      required: true
    },
  },
  data() {
    return {
     labels: [
        { title: '基本信息', id: 'row-01' },
        { title: '产品授权', id: 'row-02' },
        { title: '授权信息', id: 'row-03' },
        { title: '公司信息', id: 'row-04' },
        { title: '股东信息', id: 'row-05' },
        { title: '财务信息', id: 'row-06' },
        { title: '审核信息', id: 'row-07' }
      ]
    };
  },
  methods: {
   //保存
    saveDialog() {
      this.$emit('close', { visible: false });
    },
    //取消操作
    closeDialog() {
      this.$emit('close', { visible: false });
    }
  },
};
</script>
<style scoped>
.wrapper {
  height: calc(100vh - 110px);
}
</style>